﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Net.Mail;
namespace ICT4Events
{
    public static class Email
    {
        public static void SendEmail(MailAddress toAddress, string subject, string body)
        {
            var message = new MailMessage(new MailAddress("autoreply@terrysserver.no-ip.org","Autoreply.ICT4Events"), toAddress)
            {
                Subject = subject,
                Body = body
            };
            var client = new SmtpClient("terrysserver.no-ip.org",60003);



            client.Send(message);
        }
    }
}